import request from '@/utils/request'

export const getDepartment = () => request.get('/company/department')

export const getDepartmentManager = () => request.get('/sys/user/simple')

export const addDepartment = data => request.post('/company/department', data)

export const delDepartment = id => request.delete(`/company/department/${id}`)

export const getDetil = id => request.get(`/company/department/${id}`)

export const updateDetil = data => request.put(`/company/department/${data.id}`, data)
